local jiahe = fk.CreateSkill{
    name = "jiahe",
    tags = { Skill.Compulsory },
}

Fk:loadTranslationTable{
    ["jiahe"] = "嘉禾",
    [":jiahe"] = "<b><font color='goldenrod'>君主技</font></b>，你视为拥有<b><a href=':fenghuotu'>“缘江烽火图”</a>。",
    [":fenghuotu"] = "<b>缘江烽火图</b>：<br>①吴势力角色出牌阶段限一次，其可将一张装备牌置于“缘江烽火图”上，称为“烽火”。<br>" ..
    "②吴势力角色的准备阶段，其可根据“烽火”数量选择获得对应的技能直至其回合结束：<br>"..
    "不小于一，〖英姿〗；不小于二，〖好施〗；不小于三，〖涉猎〗；不小于四，〖度势〗；不小于五，可额外选择一项。<br>"..
    "③锁定技，当你受到【杀】或锦囊牌造成的伤害后，你将一张“烽火”置入弃牌堆。",

    --获得烽火图
    ["$jiahe1"] = "嘉禾升，大吴兴！",
    --放烽火图/拿技能
    ["$jiahe2"] = "保卫国家，人人有责！",
    ["$jiahe3"] = "连绵的烽火，就是对敌人最好的震慑!",
    --负面
    ["$jiahe4"] = "有敌来犯，速速御敌！",
    ["$jiahe5"] = "来，扶孤上马迎敌！",
}

jiahe:addEffect(fk.GeneralRevealed,{
    mute = true,
    can_trigger = function (self, event, target, player, data)
      if target == player and player:hasSkill(jiahe.name, true) then
        for _, v in pairs(data) do
          if table.contains(Fk.generals[v]:getSkillNameList(), jiahe.name) then return true end
        end
      end
    end,
    on_use = function (self, event, target, player, data)
       player.room:notifySkillInvoked(player, jiahe.name, "support")
       player:broadcastSkillInvoke("jiahe", 1)
       player.room:handleAddLoseSkills(player, "#fenghuotu")
    end,
})

return jiahe